package com.lihq.scannertool.application;

import android.app.Application;

/**
 * Created by Administrator on 2017/11/27.
 */

public class ScanApp extends Application {
    public ActivityLifecycleCallbacks mActivityLifecycleCallbacks;
    @Override
    public void onCreate() {
        super.onCreate();
//        if(Build.VERSION.SDK_INT>= Build.VERSION_CODES.LOLLIPOP) {
//            mActivityLifecycleCallbacks = new com.lihq.scannertool.util.ActivityLifecycleCallbacks(getApplicationContext());
//            this.registerActivityLifecycleCallbacks(mActivityLifecycleCallbacks);
//        }
        mActivityLifecycleCallbacks = new com.lihq.scannertool.util.ActivityLifecycleCallbacks(getApplicationContext());
        this.registerActivityLifecycleCallbacks(mActivityLifecycleCallbacks);
    }
}
